package com.wm.walmart.service.impl;

import com.wm.walmart.entity.Department;
import com.wm.walmart.mapper.DepartmentMapper;
import com.wm.walmart.service.IDepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author xieyize
 * @since 2019-12-09
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements IDepartmentService {

	@Resource
	private DepartmentMapper deptMapper;

	/**
	 * 根据部门id查询部门信息
	 */
	public Department selectDeptById(Integer dptId) {
		return deptMapper.selectById(dptId);
	}
}
